using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
   public class PhieuTraSachBUS
    {
       public static DataTable LayDanhSachPhieuTraSach()
       {
           return PhieuTraSachDAO.LayDanhSachPhieuTraSach_DAO();
       }
       public static void ThemPhieuTraSach_BUS(PhieuTraSachDTO ptsDTO)
       {
           PhieuTraSachDAO.ThemPhieuTraSach_DAO(ptsDTO);
       }
       public static void CapNhatPhieuTraSach_BUS(PhieuTraSachDTO ptsDTO)
       {
           PhieuTraSachDAO.CapNhatPhieuTraSach_DAO(ptsDTO);
       }
       public static void XoaPhieuTraSach_BUS(int maPhieuTraSach)
       {
           PhieuTraSachDAO.XoaPhieuTraSach_DAO(maPhieuTraSach);
       }

       public static DataTable TimPhieuTraSach_BUS(DateTime ngayTra)
       {
           DataTable dt = PhieuTraSachDAO.TimPhieuTraSach_DAO(ngayTra);
           return dt;
       }
    }
}
